package com.dzh.mapper;

import com.dzh.vo.SigninRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AppMapper {
    @Select("SELECT s.*,us.uid FROM signin s LEFT JOIN user_signin us ON s.sid = us.sid WHERE us.uid = 1 or ISNULL(#{user_id})")
    List<SigninRecord> siginRecordLisr(@Param("user_id") Integer user_id);
}
